﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Web.Document.Default" %>

<%@ Register Assembly="Web" Namespace="Web.Control.Item" TagPrefix="cc1" %>


<asp:Content ID="Content" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript">
        function CloseButtonClick() {
           // window.callback.PerformCallback(window.tabControl.GetActiveTabIndex());
            alert("OK");
        }
</script>
    <dx:aspxcallbackpanel ShowLoadingPanel="True" ClientInstanceName="callback" ID="callback" runat="server" width="100%" Height="100%" OnCallback="CallbackPanelCallback">
        
        <PanelCollection>
            <dx:PanelContent >
                
                <dx:aspxpagecontrol  ID="tabs" runat="server"   Width="100%" Height="100%"  EnableViewState="True">
                    
                   
            
                    
                    <Paddings Padding="0px"></Paddings>
                    <Border BorderWidth="0px"></Border>
                    <TabTemplate >
                        <table style="border-width:0;padding: 0;border-spacing:0 "  >
                            <tr style="width:auto">
                                <td style="white-space: nowrap">
                                   <%# Container.TabPage.Text   %>
                                </td>
                                <td style="width:5px"></td>
                                <td>
                                  <%--  <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Images/Delete.png" Width="16px" Height="16px"  OnClientClick="CloseButtonClick" ></asp:ImageButton>--%>
                                    <img src="../Images/Delete.png"  alt="" style="width:16px;height:16px" onclick="window.callback.PerformCallback(( <%# Container.TabPage.Index  %>));"/>
                                </td>
                            </tr>
                        </table>
                    </TabTemplate>
                    
                </dx:aspxpagecontrol>
                    
               
            </dx:PanelContent>
        </PanelCollection>
      
    </dx:aspxcallbackpanel>
    
    <%-- <dx:ASPxMenu runat="server" ID="MailMenu" RenderMode="Lightweight" ClientInstanceName="ClientMailMenu" ItemAutoWidth="false" Width="100%" ShowAsToolbar="true">
                                        <BorderBottom BorderWidth="0" />
                                        <Items>
                                            <dx:MenuItem Text="Compose" Name="compose" Image-SpriteProperties-CssClass="Sprite_Compose" />
                                            <dx:MenuItem Text="Reply" Name="reply" Image-SpriteProperties-CssClass="Sprite_Reply" />
                                            <dx:MenuItem Text="Forward" Name="fwd" Image-SpriteProperties-CssClass="Sprite_Forward" />
                                            <dx:MenuItem Text="Delete" Enabled="False" Image-SpriteProperties-CssClass="Sprite_Delete" />
                                            <dx:MenuItem Text="Print" Enabled="False" Image-SpriteProperties-CssClass="Sprite_Print" />
                                            <dx:MenuItem Name="SearchBoxItem">
                                                <Template>
                                                    <dx:ASPxButtonEdit runat="server" ID="SearchBox" Width="250" NullText="Type to Search..." CssClass="MailMenuSearchBox" 
                                                        ClientInstanceName="ClientSearchBox">
                                                        <ClientSideEvents 
                                                            TextChanged="" 
                                                            KeyPress=""
                                                        />
                                                        <Buttons>
                                                            <dx:EditButton>
                                                                <Image>
                                                                    <SpriteProperties CssClass="Sprite_Search"
                                                                        HottrackedCssClass="Sprite_SearchHover"
                                                                        PressedCssClass="Sprite_SearchHover"
                                                                        />
                                                                </Image>
                                                            </dx:EditButton>
                                                        </Buttons>
                                                        <ButtonStyle CssClass="MailMenuSearchBoxButton" />
                                                    </dx:ASPxButtonEdit>
                                                </Template>
                                            </dx:MenuItem>
                                        </Items>
                                        <ClientSideEvents ItemClick="function(s, e) {alert(e.item.name)}" />
                                    </dx:ASPxMenu>
    <div>--%>
    
        
</asp:Content>
